package com.gidgabs.modules.api.service.impl;

import com.gidgabs.modules.api.service.TbProductRewardService;
import com.gidgabs.modules.dao.TbProductRewardDao;
import com.gidgabs.modules.entity.TbProductRewardEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class TbProductRewardServiceImpl implements TbProductRewardService {
	@Autowired
	private TbProductRewardDao productRewardDao;
	
	@Override
	public TbProductRewardEntity queryObject(Integer id){
		return productRewardDao.queryObject(id);
	}
	
	@Override
	public List<TbProductRewardEntity> queryList(Map<String, Object> map){
		return productRewardDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return productRewardDao.queryTotal(map);
	}
	
	@Override
	public void save(TbProductRewardEntity productReward){
		productRewardDao.save(productReward);
	}
	
	@Override
	public void update(TbProductRewardEntity productReward){
		productRewardDao.update(productReward);
	}
	
	@Override
	public void delete(Integer id){
		productRewardDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		productRewardDao.deleteBatch(ids);
	}

	@Override
	public int queryCount(TbProductRewardEntity tbProductRewardEntity) {
		return productRewardDao.queryCount(tbProductRewardEntity);
	}

}
